#include "fig_mogaui_state.h"

FIGMOGAUIState::FIGMOGAUIState(camera::FbCamera*	pCamera,const std::string&  UIFile) : 
									gameflow::UIState(pCamera, UIFile )
{
	
}

bool	FIGMOGAUIState::OnEnter()
{
	OnMOGAUIEnter();	
	return gameflow::UIState::OnEnter();
}

void	FIGMOGAUIState::OnMOGAKeyDownEvent(int	KeyCode)
{
	OnUIKeyDownEvent(KeyCode);
	gameflow::UIState::OnMOGAKeyDownEvent(KeyCode);
}

void	FIGMOGAUIState::OnMOGAStateEvent(int State)
{
	if( input::MOGAJoystick::Instance().IsConnected())
	{
		OnEnter();
	}	
	gameflow::UIState::OnMOGAStateEvent(State);
}
